package src.jdbc;

import java.sql.*;
/**
 *
 * @author Rodrigo
 */
public class PostgreSQL {

    public static Connection getConnection() {
        Connection conexion = null;
        try {
            Class.forName("org.postgresql.Driver");
            conexion = DriverManager.getConnection("jdbc:postgresql://naruto:5432/siae", "postgres", "siae");
        } catch (Exception e) {
            System.out.println("No se encontro DB");
        }
        return conexion;
    }
}
